#ifndef MP3_H
#define MP3_H
#include "stream.h"

typedef struct {
    Stream_Handle_S stream;
} Mp3Handle;

typedef struct {
    int samplePerFrame;
    int sampleRate;
    int bitRate;
    int chnCnt;
} Mp3DecodeInfo;

int32_t MP3_Open(Mp3Handle *mp3, const char *streamPath);

int32_t MP3_ReadFrame(Mp3Handle *mp3, uint8_t **frame, uint32_t *frameLen);

int32_t MP3_Close(Mp3Handle *mp3);

int32_t MP3_Reset(Mp3Handle *mp3);

int32_t MP3_GetDecodeInfo(const char *streamPath, uint32_t len, Mp3DecodeInfo *decInfo);

#endif
